import { ref, computed } from 'vue'
import { getCategoryAPI } from '@/apis/layout';
import { defineStore } from 'pinia'

export const useCategoryStore = defineStore('category', () => {
  const categoryList=ref([]);
  async function getCategor() {
    const res= await getCategoryAPI();
    categoryList.value=res.result;
    // console.log(res.result);
}
  return {categoryList,getCategor}
})
